-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: event_payload column can be JSONB or TEXT #5372
Conversation
c053da4
to
c5c21e3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5372 +/- ##
==========================================
- Coverage 74.78% 74.76% -0.02%
==========================================
Files 440 440
Lines 61538 61607 +69
==========================================
+ Hits 46022 46062 +40
- Misses 12979 13001 +22
- Partials 2537 2544 +7 ☔ View full report in Codecov by Sentry. |
f964bf8
to
5a4adff
Compare
jobsdb/migration.go
Outdated
@@ -459,18 +459,85 @@ func (jd *Handle) getMigrationList(dsList []dataSetT) (migrateFrom []dsWithPendi | |||
return | |||
} | |||
|
|||
func getColumnConversion(srcType, destType string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to find a universal way to do the mapping, that will always work?
e5e9442
to
b55615a
Compare
0ee4339
to
1762246
Compare
1762246
to
3bc24b4
Compare
7808f82
to
935f63c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Description
event_payload
column in newly created jobs tables will beTEXT
columns.Allows migrations from one type to the other, so changing from one to the other shouldn't fail. Changing back to
JSONB
would allow server processes to continue, however utility postgres functions likeunionjobsdb
would fail in case of bytea column.Not a reloadable selection.
Allowed creating
BYTEA
columns but only for benchmark purposes.TEXT
seems to be doing better and also avoids other character validation problems.Linear Ticket
Resolves PIPE-1649
Security